<template>
  <div class="com">
    <h2>组件间通信高级(**非常重要, 面试必备**)</h2>
    <router-link to="/communication/event">event深入</router-link>&nbsp;&nbsp;
    <router-link to="/communication/model">v-model深入</router-link>&nbsp;&nbsp;
    <router-link to="/communication/sync">属性修饰符sync</router-link
    >&nbsp;&nbsp;
    <router-link to="/communication/attrs-listeners"
      >$attrs与$listeners</router-link
    >&nbsp;&nbsp;
    <router-link to="/communication/children-parent"
      >$children与$parent</router-link
    >&nbsp;&nbsp;
    <router-link to="/communication/scope-slot"
      >作用域插槽scope-slot</router-link
    >&nbsp;&nbsp;
    <br />
    <br />
    <router-view></router-view>
  </div>
</template>

<script type="text/ecmascript-6">
export default {
  name: "Communication",
};
</script>

<style lang="css" scoped>
.com {
  margin: 10px;
}
.com a {
  font-size: 16px;
  margin-right: 5px;
}
.com a.router-link-active {
  color: red;
}
</style>